package com.hk.service.sys;

import java.util.List;

import com.hk.commons.HqlFilter;
import com.hk.commons.entity.Province;

public interface IProvince {

	/** 根据id获实体 */
	public Province findById(Integer id);

	/** 添加 **/
	public void add(Province model);

	/** 新增模块，如果模块已存在则更新 */
	public void update(Province Province);

	/** 删除 */
	public Province delete(Integer id);

	/** 分页获取 */
	public List<Province> find(int pageNum, int pageSize);

	public List<Province> findByFilter(HqlFilter hqlFilter);

	public List<Province> findByFilter(HqlFilter hqlFilter, int pageNum,
			int pageSize);

	public Long countByFilter(HqlFilter hqlFilter);
	
	public Boolean existById(Integer ProvinceId);
	
	public String getProvinceNameById(Integer ProvinceId);
	
	/**
	 * 根据ProvinceCode 获取ProvinceId
	 * @param ProvinceCode
	 * @return
	 */
	public Integer getProvinceIdByCode(String ProvinceCode);
}
